<?php
/**
 * 页面顶端的导航部分。
 * 需要传入的参数:
 * $title 页面标题
 * $location 导航条位置
 */
?>
<?php

if (! isset ( $title )) {
	$title = '';
}
$cur_user = $this->session->userdata ( "userinfo" );

if (! isset ( $location )) {
	$location = '';
}
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $title ?> CodyCat </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<link type="text/css" rel="stylesheet"
	href="<?php echo base_url("public/bootstrap/css/bootstrap.min.css")?>" />
	<link type="text/css" rel="stylesheet"
	href="<?php echo base_url("public/style/code/emacs.css")?>" />

<script type="text/javascript">
    var base_url = "<?php echo base_url(""); ?>";
</script>
<script type="text/javascript"
	src="<?php echo base_url("public/bootstrap/js/bootstrap.js")?>"></script>
<script type="text/javascript"
	src="<?php echo base_url("public/bootstrap/js/bootstrap-tooltip.js")?>"></script>
<script type="text/javascript"
	src="<?php echo base_url("public/bootstrap/js/bootstrap-popover.js")?>"></script>
<script type="text/javascript"
	src="<?php echo base_url("public/bootstrap/js/bootstrap-tab.js")?>"></script>
<script type="text/javascript"
	src="<?php echo base_url("public/bootstrap/js/bootstrap-modal.js")?>"></script>
<script type="text/javascript"
	src="<?php echo base_url("public/bootstrap/js/bootstrap-dropdown.js")?>"></script>

<style type="text/css">
	pre{
		font-size:12px;
		white-space: pre;
	}
	
</style>
	
	
</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner" style="background-color: #A52F2F;">
			<div class="container" style="width: 1100px">
				<a class="brand" href="#">CodyCat</a>
				<ul class="nav">
					<li class="<?php if ($location=='home'){echo 'active';}?>"><a
						href="<?php echo base_url()?>">Home</a></li>
				</ul>
				<ul class="nav pull-right">
				</ul>
			</div>
		</div>
	</div>
	<hr />
	<div class="container">